package com.starlink.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.starlink.model.request.system.UserVipInfoRequest;
import com.starlink.model.vo.system.UserVipInfoVO;
import org.springframework.data.domain.Pageable;
import com.starlink.model.domain.UserVipSetDO;
import com.starlink.model.request.UserVipSetRequest;
import com.starlink.model.vo.UserVipSetVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface UserVipSetService extends IService<UserVipSetDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    UserVipSetVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<UserVipSetVO> pageQuery(Pageable pageable,UserVipSetRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<UserVipSetVO> listQuery(UserVipSetRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(UserVipSetRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(UserVipSetRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean deleteDOByIds(String ids);

    UserVipSetVO getVipInfo();

    /**
     * 管理端查询开用VIP用户
     * @param pageable
     * @param request
     * @return
     */
    PageInfo<UserVipInfoVO> pageQueryVipUser(Pageable pageable, UserVipInfoRequest request);
}
